import graph.graph
import graph.operations
import analyses.topology.properties

weighted = False
directed = False
 

def proc(infile, outfile):
  ip = open(infile, 'r')
  edgelist = ip.read().split("\n")
  ip.close()
  g = graph.graph.graph(directed, weighted)
  g.create(edgelist)
  analyses.topology.properties.computeProperties(g, outfile)
  g.reset()


for i in range(9):
  proc("Output/RW"+str(i)+".in", "Output/Rw"+str(i)+".out")


